package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author shixc
 * @since 2019-07-26
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWDI_T")
public class GwdiT extends PO<GwdiT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWDIENT", type = IdType.INPUT)
    private String GWDIENT;

    private BigDecimal GWDI001;

    private String GWDI002;

    private String GWDI003;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDI004;

    private String GWDI005;

    private String GWDI006;

    private String GWDI007;

    private String GWDIACTI;

    @TableField(fill = FieldFill.INSERT)
    private String GWDIUSER;

    @TableField(fill = FieldFill.INSERT)
    private String GWDIGRUR;

    @TableField(fill = FieldFill.UPDATE)
    private String GWDIMODU;

    @TableField(fill = FieldFill.INSERT)
    private String GWDITIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDIDATE;

    @TableField(fill = FieldFill.INSERT)
    private String GWDIORIG;

    @TableField(fill = FieldFill.INSERT)
    private String GWDIORIU;

    @Override
    protected Serializable pkVal() {
        return this.GWDIENT;
    }

}
